<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/include/head.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
<title><html:text name="sys.name" /></title>
</head>
<body>
<html:form action="/workflow/workflowTransition/save.crm" id="saveForm">
<html:token/><html:hidden id="workflowTransition.id" name="workflowTransition.id"/>
	<table class="input-table" cellspacing="0" cellpadding="0" border="0"
		align="center">
		<tr>
			<td colspan="4" class="x-panel-header"  style="text-align:center;"><html:text
				name="workflowTransition.action" /></td>
		</tr>
		<html:if test="myMessage!=null">
		<tr>
			<td colspan="4"  style="text-align:center;"><html:property value="myMessage" escape="false"/></td>
		</tr>
		</html:if>
		<tr>
			<td colspan="4"  style="text-align:center;"><input type="button"
				onclick="javascript:saveFunction();" id="saveButton"
				value=" <html:text name="button.save"/> ">&nbsp;<input type="button"
				onclick="javascript:backFunction();" id="backButton"
				value=" <html:text name="button.back"/> "></td>
		</tr>
		<tr>
			<td colspan="4">
			<table width="100%" border="0" cellspacing="0" cellpadding="0"> 
			<tr>
					<td ><html:text name="workflowTransition.description">  </html:text></td>
					<td class="td-input"><html:textfield dataType="string"   id="workflowTransition.description" name="workflowTransition.description"></html:textfield></td>
					<td ><html:text name="workflowTransition.workflowTemplate">  </html:text></td>
					<td class="td-input"><html:textfield dataType="string"   id="workflowTransition.workflowTemplate" name="workflowTransition.workflowTemplate"></html:textfield></td>
</tr>
<tr>
					<td ><html:text name="workflowTransition.fromStep">  </html:text></td>
					<td class="td-input"><html:textfield dataType="string"   id="workflowTransition.fromStep" name="workflowTransition.fromStep"></html:textfield></td>
					<td ><html:text name="workflowTransition.toStep">  </html:text></td>
					<td class="td-input"><html:textfield dataType="string"   id="workflowTransition.toStep" name="workflowTransition.toStep"></html:textfield></td>
</tr>
<tr>
					<td ><html:text name="workflowTransition.createDate"></html:text></td><td class="td-input"><html:date id="birthDay"  name="workflowTransition.createDate" format="yyyy-MM-dd"  /><html:textfield dataType="date"     id="workflowTransition.createDate"   name="workflowTransition.createDate"   value="%{birthDay}" readonly="true"  />&nbsp;<img style="border:0px;"   src="<%=WEBPATH%>/images/calendar.gif"   onclick="WdatePicker({dateFmt:'yyyy-MM-dd',  el:'workflowTransition.createDate'})"></td>	<td colspan="2">&nbsp;</td>
</tr>

			</table></td>
			<% 
				com.opensymphony.xwork2.util.ValueStack  obj=(com.opensymphony.xwork2.util.ValueStack)request.getAttribute("struts.valueStack");
				obj.setValue("workflowTransition", null); 
			%>
		</tr>
	</table>
	<script type="text/javascript" language="javascript">
		//var provCity = new ProvCity(); 
		//provCity.init('','');  
		function backFunction(){
			window.location="<%=WEBPATH%>/workflow/workflowTransition/index.crm";
		}
	</script>
</html:form>
</body>
</html>